package com.ruoyi.service;

import com.alibaba.fastjson2.JSONArray;
import com.alibaba.fastjson2.JSONObject;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.domain.RegisterDetailedOrder;
import com.ruoyi.domain.RegisterSummaryOrder;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

public interface OrderRegisterService {

    // 接受订单时,自动插入登记表
    int insertOrderRegister(Map map);

    Map getReserveRegisterList(Map map);

    AjaxResult postPaymentValid(JSONArray jsonArray);

    AjaxResult postPaymentInfo(Map map);

    Map getReserveRegisterById(String id);

    List<Map> getOrderRegisterPayment(Map map);

    List<Map> getOrderRegisterRefund(Map map);

    BigDecimal getHotelDfkPrice(Map map);

    Map getRegisterAndPaymentByBatchId(Map map);

    AjaxResult importBaoShangOrder(String username, String password, JSONObject body);

    AjaxResult importBaoShangOrder(JSONObject body);

    String getBaoShangToken();

    int updateBaoShangToken(String token);

    AjaxResult postRefundInfo(Map map);

    int postEditPaymentInfo(Map map);

    AjaxResult postAddRegister(JSONObject jsonObject);

    int postCopyRegister(JSONObject jsonObject);

    AjaxResult postDeleteRegister(JSONObject jsonObject);

    AjaxResult postEmptyRegister(JSONObject jsonObject);

    int postImportRegister(JSONObject jsonObject);

    List<RegisterDetailedOrder> getDetailedExport(Map map);

    List<RegisterSummaryOrder> getSummaryExport(Map map);

}